package com.example.lombok;

import lombok.extern.java.Log;

/**
 * @author shanchong
 * @date 2019-06-23
 **/
@Log
public class LogDemo {

    /**
     * @Log：根据不同的注解生成不同类型的log对象，但是实例名称都是log，有六种可选实现类
     * @CommonsLogCreates log = org.apache.commons.logging.LogFactory.getLog(LogExample.class);
     * @LogCreates log = java.util.logging.Logger.getLogger(LogExample.class.getName());
     * @Log4jCreates log = org.apache.log4j.Logger.getLogger(LogExample.class);
     * @Log4j2Creates log = org.apache.logging.log4j.LogManager.getLogger(LogExample.class);
     * @Slf4jCreates log = org.slf4j.LoggerFactory.getLogger(LogExample.class);
     * @XSlf4jCreates log = org.slf4j.ext.XLoggerFactory.getXLogger(LogExample.class);
     * @param args
     */
    public static void main(String[] args) {
        log.info("info log demo .........");
    }
}
